package com.eduction.service;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eduction.modules.system.dao.FileDownloadRepository;
import com.eduction.modules.system.entity.FileDownload;

@Service
public class FileDownloadServiceImpl implements FileDownloadService {

	@Autowired
	private FileDownloadRepository fileDownloadRepository;
	
	@Override
	public FileDownload queryFileDownload() throws SQLException {
		FileDownload f = fileDownloadRepository.queryFileDownload();
		return f;
	}

	@Override
	public void saveFileDownload(FileDownload f) {
		fileDownloadRepository.saveFileDownload(f);

	}

}
